﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public partial class PrintMasterBase: System.Web.UI.MasterPage
    {
        protected internal PModel.PConfig config = PBLL.PConfig.GetModel();
        public PrintMasterBase() { }

        /// <summary>
        /// 返回页面Meta信息
        /// </summary>
        protected string AddMetaInfo()
        {
            StringBuilder strTxt = new StringBuilder();
            strTxt.Append("<meta name=\"keywords\" content=\"" + config.P_Key + "\" />\n");
            strTxt.Append("<meta name=\"description\" content=\"" + config.P_Des + "\" />\n");
            strTxt.Append("<link type=\"text/css\" href=\"" + config.P_WebPath + "/css/style.css\" rel=\"stylesheet\" />\n");
            strTxt.Append("<script type=\"text/javascript\" src=\"" + config.P_WebPath + "/js/jquery-1.7.1.min.js\"></script>\n");
            strTxt.Append("<script type=\"text/javascript\" src=\"" + config.P_WebPath + "/js/jquery.tools.min.js\"></script>\n");
            strTxt.Append("<script type=\"text/javascript\" src=\"" + config.P_WebPath + "/js/yescai.js\"></script>\n");
            return strTxt.ToString();
        }
    }
}
